package top.ochiamalu.aioj.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.util.Date;

/**
 * 判题信息
 *
 * @author ochiamalu
 * @date 2025/01/24
 */
@TableName(value = "judge_code")
@Data
public class JudgeCode {
    /**
     * id
     */
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 题集id
     */
    private Long setId;

    /**
     * 用户id
     */
    private Long userId;

    /**
     * 测试用例id
     */
    private Long testCaseId;

    /**
     * 提交id
     */
    private String submissionId;

    /**
     * 提示
     */
    private String hint;

    /**
     * 用时
     */
    private Long time;

    /**
     * 内存
     */
    private Long memory;

    /**
     * 得分
     */
    private Integer score;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 更新时间
     */
    private Date updateTime;

    /**
     * 是否删除
     */
    @TableLogic
    private Integer isDelete;
}
